package chainSimplification;

import java.util.Vector;

import dviz.visualAnnotation.AttachVO;
import dviz.visualAnnotation.ConstructMap;
import dviz.visualAnnotation.FunctionMap;
import dviz.visualAnnotation.Param;

@AttachVO("LineVO")
public class Path {
	Vector<Vertex> vertices;
	String color;

	public Vector<Vertex> getVertices() {
		return vertices;
	}

	@ConstructMap("main")
	public Path() {
		vertices = new Vector<Vertex>();
	}

	@FunctionMap("addPoint")
	public void addVertex(@Param("point") Vertex v) {
		vertices.add(v);
	}

	@FunctionMap("removePoint")
	public void removeVertex(@Param("point") Vertex v) {
		vertices.remove(v);
	}


	public static void main(String s[]) {
		// Path path = new Path();
		// for (int i = 0; i < 10; i++) {
		// path.addVertex(new Vertex((float) (Math.random() * 100),
		// (float) (Math.random() * 100),
		// (float) (Math.random() * 100)));
		// }
//		Plane plane = new Plane();
	}
}
